package com.trkj.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.trkj.dao.jpa.ICardDao;
import com.trkj.vo.CardVo;
@Service
@Transactional
public class CardService {
	@Autowired
	private ICardDao cardDao;
	
	/**
	 * 模糊查询诊疗卡 ByName
	 * @param Name
	 * @return
	 */
	public List<CardVo> likeQueryCidByName(String Name){
		
		String likeName = "%"+Name+"%";
		List<CardVo> list = cardDao.queryByNameLike(likeName);
		return list;
	}
	/**
	 * 模糊查询诊疗卡 ByID
	 * @param cradID
	 * @return
	 */
	public List<CardVo> likeQueryCidByID(String cradID){
		
		String likecradID = "%"+cradID+"%";
		List<CardVo> list = cardDao.queryByIDLike(likecradID);
		return list;
	}

}
